package com.huarui.framework.activemq;

import com.opensymphony.xwork2.ActionSupport;

public class ActiveMQAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1310661242752132553L;
	private  OrderProducer orderProducer; 
	
	public OrderProducer getOrderProducer() {
		return orderProducer;
	}

	public void setOrderProducer(OrderProducer orderProducer) {
		this.orderProducer = orderProducer;
	}

	public void doSend(){
		
		Order order = new Order();
		order.setId("order1");
		
		orderProducer.send(order);
		
	}
}
